--- title: "L1-024 后天" created: 2025-11-28 tags: - 算法 --- # L1-024 后天 ## 题目 [L1-024 后天](https://pintia.cn/problem-sets/994805046380707840/exam/problems/type/7?problemSetProblemId=994805111694409728&page=0) ![[image-f452d4c5.png]] ## 思路分析 ## 代码实现 ```cpp #include using namespace std; #define endl '\n' int main() { ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); // map hash; // hash[1]=3,hash[2]=4,hash[3]=5,hash[4]=6,hash[5]=7,hash[6]=1,hash[7]=2; // int n;cin>>n; // cout<>n; int ans=(n+2+7)%7; if(ans==0) ans=7; cout<